package com.dalin.framework.common.pager;

import java.util.List;

/*****************************************************************************
 * @content: 该对象封装查询语句，参数集合，单页起始地址                                                                     *
 * @author : 那建林                                                                                                                                 *
 * @remark : DAO层接收通用的查询条件                                                                                                  *
 * @crtDate: 2009-05-07                                                     *
 * @crtDate: 2010-05-16                                                     *
 * @version: 1.3                                                            *
 ****************************************************************************/
public class PageQuery implements java.io.Serializable  {
	private String baseQueryStr;    // 基础查询语句
	private String countName;
	private List<Paras> paramList;  // 参数集合
	private List<Paras> orParamList;  // 参数集合
	private String groupBy;         // group by　字段
	private String orderBy;         // order by　字段
	private Integer startRow;       // 分页起始查询地址 null为无分页,全查
	private Integer pageSize;       // 每页显示的行数
	
	public PageQuery() {
	}
	public PageQuery(Integer startRow, Integer pageSize) {
		this.startRow = startRow;
		this.pageSize = pageSize;
	}
	
	
	public String getBaseQueryStr() {
		return baseQueryStr;
	}
	public void setBaseQueryStr(String baseQueryStr) {
		this.baseQueryStr = baseQueryStr;
	}
	public List<Paras> getParamList() {
		return paramList;
	}
	public void setParamList(List<Paras> paramList) {
		this.paramList = paramList;
	}
	public String getGroupBy() {
		return groupBy;
	}
	public void setGroupBy(String groupBy) {
		this.groupBy = groupBy;
	}
	public String getOrderBy() {
		return orderBy;
	}
	public void setOrderBy(String orderBy) {
		this.orderBy = orderBy;
	}
	public Integer getStartRow() {
		return startRow;
	}
	public Integer getPageSize() {
		return pageSize;
	}

	public String getCountName() {
		return countName;
	}
	public void setCountName(String countName) {
		this.countName = countName;
	}
	public List<Paras> getOrParamList() {
		return orParamList;
	}
	public void setOrParamList(List<Paras> orParamList) {
		this.orParamList = orParamList;
	}
}
